package com.aspose.cells;

class zmn extends zbz {
   zmn() {
      this.c(2175);
      this.b(12);
   }

   void a(FilterColumn var1, Object var2) {
      String var3 = com.aspose.cells.b.a.zr.a(var2);
      byte[] var4 = Encoding.getUnicode().a(var3);
      this.b(this.d() + (short)(11 + var4.length));
      this.c = new byte[this.d()];
      int var5 = this.a(var1.c().a().h());
      this.c[var5] = 6;
      this.c[var5 + 1] = 2;
      this.c[var5 + 2] = (byte)(var4.length / 2);
      if (var3.indexOf(63) < 0 && var3.indexOf(42) < 0) {
         this.c[var5 + 3] = 1;
      }

      var5 += 10;
      this.c[var5] = 1;
      ++var5;
      System.arraycopy(var4, 0, this.c, var5, var4.length);
   }

   void a(FilterColumn var1, DateTimeGroupItem var2) {
      this.b(this.d() + 24);
      this.c = new byte[this.d()];
      int var3 = this.a(var1.c().a().h());
      System.arraycopy(com.aspose.cells.b.a.zc.a((short)var2.getYear()), 0, this.c, var3, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a((short)var2.getMonth()), 0, this.c, var3 + 2, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var2.getDay()), 0, this.c, var3 + 4, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a((short)var2.getHour()), 0, this.c, var3 + 8, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a((short)var2.getMinute()), 0, this.c, var3 + 10, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a((short)var2.getSecond()), 0, this.c, var3 + 12, 2);
      var3 += 20;
      byte var4 = 0;
      switch(var2.getDateTimeGroupingType()) {
      case 0:
         var4 = 2;
         break;
      case 1:
         var4 = 3;
         break;
      case 2:
         var4 = 4;
         break;
      case 3:
         var4 = 1;
         break;
      case 4:
         var4 = 5;
      }

      if (var4 != 0) {
         System.arraycopy(com.aspose.cells.b.a.zc.a(var2.getDay()), 0, this.c, var3, 4);
      }

   }

   void a(FilterColumn var1) {
      this.b(this.d() + 10);
      this.c = new byte[this.d()];
      int var2 = this.a(var1.c().a().h());
      this.c[var2] = 12;
      this.c[var2 + 1] = 2;
   }

   private int a(CellArea var1) {
      this.c[0] = 127;
      this.c[1] = 8;
      this.c[2] = 1;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.StartRow), 0, this.c, 4, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.EndRow), 0, this.c, 6, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.StartColumn), 0, this.c, 8, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.EndColumn), 0, this.c, 10, 2);
      return 12;
   }
}
